package com.dissertation.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 申请 - 同意表
 */
@Document
public class ApplyAllow {

    @Id
    private String id;

    private String applyName; // 申请者姓名

    private boolean status; // true => 同意 false => 未同意

    private String assetId; // 申请查看文档id

    private String owner;  //申请查看的文档的第一责任人

    private String applyInformation;//申请信息

    private String time;//申请时间

    private Integer valid;//有效访问时间，0 为永久，其他单位为小时。

    private String deadtime;//申请的无效开始日期

    private Boolean deal; //该申请是否已经被处理

    public void setDeadtime(String deadtime) {
        this.deadtime = deadtime;
    }

    public String getDeadtime() {

        return deadtime;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Integer getValid() {

        return valid;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTime() {

        return time;
    }

    public void setApplyInformation(String applyInformation) {
        this.applyInformation = applyInformation;
    }

    public String getApplyInformation() {

        return applyInformation;
    }

    public void setDeal(Boolean deal) {
        this.deal = deal;
    }

    public Boolean getDeal() {

        return deal;
    }



    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getOwner() {

        return owner;
    }

    public String getId() {
        return id;
    }

    public void setId( String id ) {
        this.id = id;
    }

    public String getApplyName() {
        return applyName;
    }

    public void setApplyName( String applyName ) {
        this.applyName = applyName;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus( boolean status ) {
        this.status = status;
    }

    public String getAssetId() {
        return assetId;
    }

    public void setAssetId( String assetId ) {
        this.assetId = assetId;
    }
}
